"""牛客网 - 字符串加密:
https://www.nowcoder.com/practice/2aa32b378a024755a3f251e75cbf233a?tpId=37&tqId=21252&tPage=2&rp=&ru=/ta/huawei&qru=/ta/huawei/question-ranking
"""

def incrypt(instr):
    
    outstr = ""
    for s in instr:
        if s.isupper():
            if s=="Z":
                outstr+="a"
            else:
                outstr+=chr(ord(s)+1).lower()
        elif s.islower():
            if s=="z":
                outstr+="A"
            else:
                outstr+=chr(ord(s)+1).upper()
        elif s.isdigit():
            if s=="9":
                outstr+="0"
            else:
                outstr+=chr(ord(s)+1)
        else:
            outstr+=s
            
    return outstr

def decrypt(instr):
    outstr = ""
    for s in instr:
        if s.isupper():
            if s=="A":
                outstr+="z"
            else:
                outstr+=chr(ord(s)-1).lower()
        elif s.islower():
            if s=="a":
                outstr+="Z"
            else:
                outstr+=chr(ord(s)-1).upper()
        elif s.isdigit():
            if s == "0":
                outstr+="9"
            else:
                outstr+=chr(ord(s)-1)
        else:
            outstr+=s
    return outstr

while True:
    try:
        input1 = input()
        input2 = input()

        output1 = incrypt(input1)
        output2 = decrypt(input2)

        print(output1)
        print(output2)
    except:
        break